//
//  HTTPRequestHelper.h
//  eBook
//
//  Created by Pham Vu Duong on 5/07/12.
//  Copyright 2012 CMC Software Sotusion Company Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"

#define kRequestListPostsNotification @"kRequestListPostsNotification"

typedef enum
{
    REQUEST_POSTS_LIST
} HTTPRequestMethod;

@interface TumblrRequestHelper : NSObject <ASIHTTPRequestDelegate>
{
    HTTPRequestMethod httpRequestMethod;
    ASIHTTPRequest * _request;
}

@property (nonatomic, assign) HTTPRequestMethod httpRequestMethod;
@property (nonatomic, copy) NSString * notificationReturn;

- (void)requestWithMethodName:(HTTPRequestMethod)methodName
                       andURL:(NSString*)URL
                andHttpMethod:(NSString *)httpMethod
                  andDelegate:(id<ASIHTTPRequestDelegate>)delegate;
- (void)dismissRequest;

#pragma mark - Get Records from Back-end Database

- (NSString*)getListPostWithURL:(NSString*)url;


@end
